{eval
function tpl_jssdk_share() {
global $_G,$signPackage,$wxdata;
}
<!--{block return}-->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<script>

    wx.config({
        //debug: true,
        appId: '$signPackage["appId"]',
        timestamp: '$signPackage["timestamp"]',
    nonceStr: '$signPackage["nonceStr"]',
        signature: '$signPackage["signature"]',
        jsApiList: ['showOptionMenu','onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo']

    });

    wxData = {title: '{$wxdata[title]}', link: '{$wxdata[link]}', imgUrl: '{$wxdata[imgUrl]}', desc: '{$wxdata[desc]}'};
    wx.ready(function () {
        wx.showOptionMenu();
        wx.onMenuShareTimeline(wxData);
        wx.onMenuShareAppMessage(wxData);
        wx.onMenuShareQQ(wxData);
        wx.onMenuShareWeibo(wxData);
    });
</script>
<!--{/block}-->
<!--{eval return $return;}-->


{eval
}


}


